Used to place a picture in a vector graphics environment.
Constructor
Name | Parameters | Description |
|---|---|---|
PixmapShape |
Image as Picture |
Initializes object to entire source image. |
Example
The following method in the Action event of a PushButton draws a red oval in the parent window.
Dim p as Picture
Dim px as PixmapShape
p=New Picture(240,200,32)
p.graphics.foreColor = &cFF0000
p.graphics.fillOval 0,0,240,200
px= New PixmapShape(p)
px.rotation = 45/57.2958 //45 Degrees in radians
Graphics.drawObject px,150,150
Dim px as PixmapShape
p=New Picture(240,200,32)
p.graphics.foreColor = &cFF0000
p.graphics.fillOval 0,0,240,200
px= New PixmapShape(p)
px.rotation = 45/57.2958 //45 Degrees in radians
Graphics.drawObject px,150,150
See Also
ArcShape, CurveShape, FigureShape, FolderItem, Group2D, Graphics, Object2D, OvalShape, Picture, RectShape, RoundRectShape, StringShape classes.